home *** CD-ROM | disk | FTP | other *** search
- .model small
- .stack 200h
-
- .data
-
- include test_bmp.asm ; my asm file
-
- .code
-
- start:
- cld
- mov ax,seg BA_PAL
- mov ds,ax
- mov ax,0A000h
- mov es,ax
-
- mov ax,0013h
- int 10h
- mov bx,COLORS
- mov cx,bx
- sal bx,1
- add cx,bx
- mov dx,03C8h
- xor al,al
- out dx,al
- inc dx
- mov si,offset BA_PAL
- s01: lodsb
- out dx,al
- loop s01
- mov cx,YSIZE
- xor di,di
- mov si,offset BA_SCR
- s02: push cx
- push di
- mov cx,XSIZE
- rep movsb
- pop di
- add di,320
- pop cx
- loop s02
- mov ah,00
- int 16h
- mov ax,0003h
- int 10h
- mov ax,4C00h
- int 21h
-
- end start
-
-
-
-